#ifndef PLAYGROUND_H
#define PLAYGROUND_H

#ifndef WX_PRECOMP
	//(*HeadersPCH(Playground)
	#include <wx/sizer.h>
	#include <wx/stattext.h>
	#include <wx/textctrl.h>
	#include <wx/panel.h>
	#include <wx/button.h>
	#include <wx/dialog.h>
	#include <wx/gauge.h>
	//*)
#endif
//(*Headers(Playground)
//*)
//#include "ProcessSound.h"

#include <wx/msgdlg.h>
#include "mic.h"

    const int FFT_POINTS = 256;
    const int CHANNELS = 1;
    const int MIN_SAMP_BUF = 64;

class Playground: public wxDialog
{
	public:

		Playground(wxWindow* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
		virtual ~Playground();

		//(*Declarations(Playground)
		wxStaticText* txtMicWorking;
		wxTextCtrl* txtDebug;
		wxButton* Button1;
		wxGauge* Gauge1;
		wxPanel* Panel1;
		wxButton* butClearDebug;
		//*)


	protected:

		//(*Identifiers(Playground)
		static const long ID_BUTTON_MIC;
		static const long ID_STATICTEXT8;
		static const long ID_GAUGE1;
		static const long ID_TEXTCTRL1;
		static const long ID_BUTTON1;
		static const long ID_PANEL1;
		//*)



	private:

		//(*Handlers(Playground)
		void OnButton1Click(wxCommandEvent& event);
		void OnButClearDebugClick(wxCommandEvent& event);
		//*)



    bool				_isStopped;

    micInput soundInput;
//
//    unsigned			_bitsPerSample;
//    unsigned			_samplesPerSecond;
//    unsigned			_fftPoints;
//    unsigned			_samplesPerBuf;
//
//
//    ProcessSound				*_processsound;

		DECLARE_EVENT_TABLE()
};

#endif
